import { _decorator, Component, Node, v3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Backlight')
export class Backlight extends Component {

    @property
    Speed: number = 1;


    protected update(dt: number): void {
        // this.node.setRotationFromEuler(v3(0, 0, this.node.getRotation().z + dt * this.Speed));
        // this.node.eulerAngles = v3(0, 0, this.node.eulerAngles.z + dt * this.Speed);
        this.node.angle += this.Speed * dt;

    }
}


